package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworks
 * Date: 8/21/13
 * Time: 8:49 AM
 * To change this template use File | Settings | File Templates.
 */
public class UserInputReader {

    private final BufferedReader bufferedReader;
    private String userInput;

        public UserInputReader(BufferedReader bufferedReader) {
            this.bufferedReader = bufferedReader;
        }

        public String readUserInput() {
            try {
                userInput = bufferedReader.readLine();
            }   catch(IOException e) {
                e.printStackTrace();
            }
            return userInput;
        }

}
